package com.gz.WeChatSys.service.impl;

import com.gz.WeChatSys.dao.WxMpAutoreplyDao;
import com.gz.WeChatSys.model.WxMpAutoreply;
import com.gz.WeChatSys.model.WxMpAutoreplyType;
import com.gz.WeChatSys.service.WxMpAutoreplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lydia
 * @date 2018/9/28 下午5:09
 * @discription
 */
@Service
@EnableAutoConfiguration
public class WxMpAutoreplyServiceImpl implements WxMpAutoreplyService{

    @Resource
    WxMpAutoreplyDao wxMpAutoreplyDao;

    @Override
    public List<WxMpAutoreplyType> getTypeList() {
        return wxMpAutoreplyDao.getTypeList();
    }

    @Override
    public List<WxMpAutoreply> getAutoreplyByType(int typeId) {
        return wxMpAutoreplyDao.getAutoreplyByType(typeId);
    }

    @Override
    public WxMpAutoreply getAutoreplyInfo(int id) {
        return wxMpAutoreplyDao.getAutoreplyInfo(id);
    }
}
